package com.lin.reggie.mapper;

import com.lin.reggie.entity.OrderDetail;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderDetailMapper {

    Integer saveBatch(@Param("orderDetailList") List<OrderDetail> orderDetailList);


    @Select("select *from order_detail where order_id=#{orderId}")
    List<OrderDetail> findByOrderId(Long orderId);
}
